package com.tanhua.dubbo.server.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;


@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "user_login")
public class UserLogin implements Serializable {

    private static final long serialVersionUID = -291788238125756778L;

    @Id
    private ObjectId id; //主键
    private Long userId; //用户id
    private String place;  //登录地点
    private String equipment; //登录设备
    private Long logTime;   //登录时间
    private Long logoutTime; //登出时间

}
